﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IndoorPosition.Server.Core.Entities
{
    /// <summary>
    /// 基站位置，使用WGS84 Web Mercator投影坐标
    /// </summary>
    [Comment("基站位置，使用WGS84 Web Mercator投影坐标")]
    public class Position: EntityBase
    {
        /// <summary>
        /// 基站ID
        /// </summary>
        [Comment("基站ID")]
        public int StationId
        {
            get;
            set;
        }

        /// <summary>
        /// 基站
        /// </summary>
        [ForeignKey("StationId")]
        public virtual Station Station
        {
            get;
            set;
        }

        /// <summary>
        /// X坐标
        /// </summary>
        [Comment("X坐标")]
        public double X
        {
            get;
            set;
        }

        /// <summary>
        /// Y坐标
        /// </summary>
        [Comment("Y坐标")]
        public double Y
        {
            get;
            set;
        }
    }
}
